// vite.config.ts
import { defineConfig } from "file:///D:/wu/hr_new_vue3/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/wu/hr_new_vue3/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import { resolve } from "path";
import vueJsx from "file:///D:/wu/hr_new_vue3/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
import { vitePluginForArco } from "file:///D:/wu/hr_new_vue3/node_modules/@arco-plugins/vite-vue/lib/index.js";
import Components from "file:///D:/wu/hr_new_vue3/node_modules/unplugin-vue-components/dist/vite.mjs";
import { ArcoResolver } from "file:///D:/wu/hr_new_vue3/node_modules/unplugin-vue-components/dist/resolvers.mjs";
import AutoImport from "file:///D:/wu/hr_new_vue3/node_modules/unplugin-auto-import/dist/vite.js";
var __vite_injected_original_dirname = "D:\\wu\\hr_new_vue3";
var vite_config_default = defineConfig({
  server: {
    proxy: {
      "/v3": {
        target: "https://restapi.amap.com",
        changeOrigin: true,
        secure: false,
        rewrite: (path) => path.replace(/^\/v3/, "/v3")
      }
    }
  },
  resolve: {
    alias: {
      "@": resolve(__vite_injected_original_dirname, "./src"),
      vue: "vue/dist/vue.esm-bundler.js"
    }
  },
  plugins: [
    vue(),
    vueJsx(),
    vitePluginForArco({
      // theme: '@arco-themes/vue-digitforce'
      theme: "@arco-themes/vue-linke"
    }),
    AutoImport({
      // targets to transform
      include: [
        /\.[tj]sx?$/,
        // .ts, .tsx, .js, .jsx
        /\.vue$/,
        /\.vue\?vue/,
        // .vue
        /\.md$/
        // .md
      ],
      dts: "src/auto-imports.d.ts",
      // 导入的位置
      // 这里除了引入 vue 以外还可以引入pinia、vue-router、vueuse等，
      // 甚至你还可以使用自定义的配置规则，见 https://github.com/antfu/unplugin-auto-import#configuration
      imports: ["vue", "vue-router", "pinia"],
      // eslint报错解决
      eslintrc: {
        enabled: true,
        // Default `false`
        filepath: "./.eslintrc-auto-import.json",
        // Default `./.eslintrc-auto-import.json`
        globalsPropValue: true
        // Default `true`, (true | false | 'readonly' | 'readable' | 'writable' | 'writeable')
      },
      // 第三方组件库的解析器
      resolvers: [ArcoResolver()]
    }),
    Components({
      resolvers: [ArcoResolver()],
      // 指定组件位置，默认是src/components
      dirs: ["src/components"],
      // ui库解析器
      // resolvers: [ElementPlusResolver()],
      extensions: ["vue"],
      // 配置文件生成位置
      dts: "src/components.d.ts"
    })
  ],
  build: {
    sourcemap: true
  },
  css: {
    devSourcemap: true,
    preprocessorOptions: {
      modules: {
        generateScopedName: "[name]_[local]_[hash:5]"
      },
      less: {
        modifyVars: {
          hack: `true; @import (reference) "${resolve(
            "src/assets/style/breakpoint.less"
          )}";`
        },
        javascriptEnabled: true
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFx3dVxcXFxocl9uZXdfdnVlM1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiRDpcXFxcd3VcXFxcaHJfbmV3X3Z1ZTNcXFxcdml0ZS5jb25maWcudHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0Q6L3d1L2hyX25ld192dWUzL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZSc7XG5pbXBvcnQgdnVlIGZyb20gJ0B2aXRlanMvcGx1Z2luLXZ1ZSc7XG5pbXBvcnQgeyByZXNvbHZlIH0gZnJvbSAncGF0aCc7XG5pbXBvcnQgdnVlSnN4IGZyb20gJ0B2aXRlanMvcGx1Z2luLXZ1ZS1qc3gnO1xuaW1wb3J0IHsgdml0ZVBsdWdpbkZvckF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